<?php
/**
 * Created by PhpStorm.
 * User: ZZF
 * Date: 2017/3/16
 * Time: 11:36
 */

namespace app\admin\model;
use think\Model;
use think\Verify;
class InsuranceModel extends Model{
	protected $validate = [
         'rule' => [
			'name' => "require|unique:insurance|length:2,32"
		 ],
         'msg'  => [
			'name.require' => "保险项目名称必须填写！",
			'name.unique' => "保险项目名称已存在！",
			'name.length' => "保险项目名称长度必须不少于2"
		 ]
    ];
}
